package com.elric.mall.mapper;

import com.elric.mall.model.ZgBaseUpperUnit;
import com.elric.mall.model.ZgBaseUpperUnitExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface ZgBaseUpperUnitMapper {
    long countByExample(ZgBaseUpperUnitExample example);

    int deleteByExample(ZgBaseUpperUnitExample example);

    int deleteByPrimaryKey(String id);

    int insert(ZgBaseUpperUnit record);

    int insertBatch(List<ZgBaseUpperUnit> records);

    int insertSelective(ZgBaseUpperUnit record);

    List<ZgBaseUpperUnit> selectByExample(ZgBaseUpperUnitExample example);

    ZgBaseUpperUnit selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") ZgBaseUpperUnit record, @Param("example") ZgBaseUpperUnitExample example);

    int updateByExample(@Param("record") ZgBaseUpperUnit record, @Param("example") ZgBaseUpperUnitExample example);

    int updateByPrimaryKeySelective(ZgBaseUpperUnit record);

    int updateByPrimaryKey(ZgBaseUpperUnit record);
}